<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.jaxplat.commons.Row" %>
<%@ page import="com.rs.util.Utils" %>
<%
    String contextPath = request.getContextPath();
	Row hosInfo = null;
	Row secInfo = null;
 	String cityName = "";
 	String secId = "";
 	
 	if(null != request.getAttribute("secId")) {
 	   secId = (String)request.getAttribute("secId");
 	}

 	if(null != request.getAttribute("curr_city_name"))
 	{
 	    cityName = (String)request.getAttribute("curr_city_name");
 	}
	if(null != request.getAttribute("hosInfo"))
	{
	    hosInfo = (Row)request.getAttribute("hosInfo");
	}
	else
	{
	    hosInfo = new com.jaxplat.commons.RowImpl();
	}
	
	if(null != request.getAttribute("secInfo"))
	{
	    secInfo = (Row)request.getAttribute("secInfo");
	}
	else
	{
	    secInfo = new com.jaxplat.commons.RowImpl();
	}

	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="预约挂号,预约诊疗,门诊预约,网上医院,网上挂号" name="Keywords">
<meta content="预约挂号平台提供各大三甲医院知名专家的网上预约就医服务。同时提供就医咨询、导医陪诊、专家会诊、住院转院、安排手术等服务" name="description">
<title>科室列表-云南移动无线城市</title>
<link rel="stylesheet" type="text/css" href="<%=contextPath%>/css2/style.css">
<script src="<%=contextPath%>/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script language='javascript' src="<%=contextPath %>/js/jquery.blockUI.js"></script>
<script type="text/javascript" src="<%=contextPath %>/js/common.js"></script>
<script type="text/javascript">
//弹出对话框
function showInfo(){
	$.blockUI({ message: $('#infoDIV') }); 
    $('#infoDIV').css({'padding':'20px','text-align':'left','height':'300px','position':'relative'});
    $('.blockOverlay').click($.unblockUI); 
    $('.btn_closed').click($.unblockUI); 
}
$(document).ready(function(){
     var n=0;
	$(".drawcont").click(function(){
        if(n==0)
        {
        	$('.details').removeClass('h50');
       		$(this).html('收起');
            n=1;
            return;
        }
  		if(n==1)
        {
        	$('.details').addClass('h50');
       		$(this).html('展开');
            n=0;
            return;
        }
      else{return}
	});
	schDoctor();
});
var contextPath = '<%=contextPath%>';
$(function(){
	
});
function schDoctor(){
	$("#divDocList").html('');
	
	$.ajax({
		type: 'POST',
		url:"<%=contextPath%>/web/doctorAction.do?method=searchDoc",
		data:{
				section_id: '<%=secId %>'
			},
		success:function(data){
			//document.write(data);
			var data = eval("("+data+")");
			var totalCount = data[0].totalCount;
			var str = ""
			for(var i=1;i<data.length;i++){
				   str="";
				   if(i%2==0)
				   {
	               		str+='  <ul class="ulist ulist_height">                                            ';
				   }
				   else
				   {
					   str+='  <ul class="ulist">                                            ';
				   }
	               str+='   <li class="uhead">                                                             ';
	               str+='           <a href="<%=contextPath%>/web2/doctorAction.do?method=searchDocInfo&doctor_id='+data[i].id+'&date=&ds_id='+data[i].ds_id+'">'+data[i].name+'&nbsp;&nbsp; ' + data[i].pro_title_cn +'</a>       ';
	               str+='                   <a href="<%=contextPath%>/web2/reserve.do?method=apply&ds_id=' + data[i].ds_id + '">  ';
	               str+='                         <img src="<%=contextPath %>/images/btn_yuyue.jpg" />     ';
	               str+='                   </a>                                                           ';
	               str+='           </li>                                                                  ';
	               str+='   <li>                                                                           ';
	               str+='         <b>所属医院：</b>'+data[i].hos_name+' <br />                             ';
	               str+='         <b>所属科室：</b>'+data[i].sec_name+' <br />                             ';
	               str+='         <b>出诊时间：</b>' + data[i].sc_date_str + '&nbsp;&nbsp;' +data[i].batch_cn+' <br />                             ';
	               str+='         <b>简介：</b>' + data[i].intro +'                                        ';
	               str+='   </li>                                                                          ';
	               str+=' </ul>                                                                            ';

				   $("#divDocList").append(str);
			}
			
			$.ajax({
				url:'<%=contextPath%>/web/doctorAction.do?method=getPageHtml&pageIndex='+$("#pageIndex").val()+'&totalCount='+totalCount,
						async:false,
						type:'post',
						success:function(data){
							$("#div_page").html(data);
						}
			});
		}
	});
}
/*
 分页函数
 */
function pagination(pageIndex) {
	$("#pageIndex").val(pageIndex);
	schDoctor();
}
</script>

<!--[if IE 6]>
 <style type="text/css">
 .w942m {
	width:942px;
	margin:0 auto;
	margin-top:150px;
}
.main_left .main_box_title {
	background: url("../images/h4bg.png") no-repeat scroll left top transparent;
	height:43px;
	margin-left:-10px;
	position:absolute;
	top:10px;
}
 </style>
<![endif]-->

<!--[if IE 7]>
 <style type="text/css">
 .w942m {
	width:942px;
	margin:0 auto;
	margin-top:150px;
}
.main_left .main_box_title {
	background: url("../images/h4bg.png") no-repeat scroll left top transparent;
	height:43px;
	margin-left:-10px;
	position:absolute;
	top:10px;
}
 </style>
<![endif]-->
</head>
<body>
<%=request.getSession().getAttribute("headerContentWeb") %>
<div class="guahao">
    <!--start header-->
    <div class="header">
        <%@ include file="head.jsp"%>
        <!--end header-->
        <div class="clear mb8"></div>
        <!--start main-->
        <div class="main w942m">
            <div class="main_left fl">
                <div class="main_box">
                    <div class="box">
                        <div class="inbox">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_info">
                                <tr>
			                <td colspan="3" class="inboxH bte5"><span class="unitname fl"><%=secInfo.getString("name") %></span>
				                <span class="fl">【</span>
				                <a class="fl" href="<%=contextPath%>/web2/hosAction.do?method=viewHos&hospital_id=<%=hosInfo.getLong("id") %>">选择其它科室</a>
				                <span class="fl">】</span>
			                </td>
                                </tr>
		              <tr>
		                <td rowspan="6" width="160"><!--<div class="theme">--> 
							<div class="img_border">
		                    	 <div class="img_cut">
		                  			<img src="<%=secInfo.getString("path") %>" width="100">
								</div>
							</div> 
		                  <!--</div>--></td>
		                <td class="pretitle">所在医院：</td>
		                <td><span class="unitname fl"><%=hosInfo.getString("name") %></span>
		                <span class="fl">【</span>
		                	<a class="fl" href="<%=contextPath%>/web2/hosAction.do?method=list">选择其它医院</a>
		                <span class="fl">】</span> </td>
		              </tr>
                                <tr>
                                    <td class="pretitle">科室资质：</td>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
		                <td class="pretitle">联系地址：</td>
		                <td>
		                	<%=hosInfo.getString("address") %>
						</td>
		              </tr>
		            </table>
		           <div class="details h50">
		           		<%=secInfo.getString("remark") %>
		           </div>
                            <!--end details-->
                            <div class="tr"><a href="javascript:void(0);" class="drawcont">展开</a></div>
                            <!--end tr-->
                        </div>
                        <!--end inbox-->
                    </div>
                    <!--end box-->
                </div>
                <!--end main_box-->
                <div class="main_box">
                    <div class="main_box_title">
                        <div class="titleleft fl"></div>
                        <div class="left_titlemain fl">
                            <h4 class="h4">请选择预约时间</h4>
                        </div>
                        <div class="titleright fl"></div>
                    </div>
                    <div  class="left_main_box_cont">
		           <!--表格代码开始-->
		           	 <div id="divDocList">
           	 
		           	 </div>

			        <div id="div_page" class="pages">
	        	
			        </div>
        
		          <!--表格代码结束-->
                    </div>
                    <!--end left_main_box_cont-->
                    <div class="left_box_bottom mb8"></div>
                </div>
                <!--end main_box-->
            </div>
            <!--end main_left-->
            <%@ include file="right_2.jsp"%>
            <!--end main_right-->
        </div>
        <!--end main_left-->
    </div>
    <!--end main-->
    <div class="clear"></div>
</div>
<input type="hidden" name="pageIndex" id="pageIndex" />
<div id="infoDIV" style="display:none">
    <p>尊敬的用户：<br />
    <p>感谢使用云南移动无线城市-手机预约挂号系统。</p>
    <p>现在暂不支持普通页面预约，请您拨打12580，进入“预约挂号服务”，通过电话语音方式进行预约挂号。
    <div class="btn_closed"> 关&nbsp;&nbsp;闭</div>
</div>
<%=request.getSession().getAttribute("footerContentWeb") %>
</body>
</html>